package com.shitou.shitoumember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shitou.shitoucommons.utils.PageUtils;
import com.shitou.shitoucommons.utils.RespBean;
import com.shitou.shitoumember.entity.TokenEntity;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 *
 *
 * @author shitouren
 * @email 3076767823@qq.com
 * @date 2023-03-28 16:52:06
 */
public interface TokenService extends IService<TokenEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     *
     * @param memberId
     * @return
     */
    public RespBean createToken(long memberId);

    /**
     * 登出
     * @param memberId
     * @return
     */
    public RespBean loginOut(long memberId) ;

    TokenEntity checkTokenTime(String token, HttpServletResponse response);
}

